package com.zp.base;

public class Child extends Parent {
	
	String name = "name = son";
	int age = 20;
	
	public Child(){
		super(1);
		System.out.println("Child...");
	}
	
	public void study(){
		super.say();//super用来调用父类方法，可以放在任何位置，不用一定放在第一个，这也是和在构造器中的区别；
		System.out.println("the son is student....");
		super.say();
	}
	
	public static void main(String [] args){
		Child c = new Child();
		System.out.println(c.name);
		System.out.println(c.age);
		c.study();
		c.say();
	}
}
